<template>
    <div class="main">
        <div class="login-hd">
            <div class="hd-left">
                <img src="https://back-image.oss-cn-shenzhen.aliyuncs.com/webserve/cfanslogo.png" alt="">
                <i>涨粉丝, 找C粉助手</i>
            </div>
        </div>
        <div class="login-content">
            <div class="login-ct">
                <div class="login-head">
                    <img src="@/assets/wechat.png" alt="" :style="{width: '28px', height: '28px', marginRight: '5px'}">
                    <span>微信扫码登录</span>
                </div>
                <div class="login-qrcode">
                    <WxLogin
                :appid="appid"
                :scope="'snsapi_login'"
                :redirect_uri="redirect_uri"
                :theme="'black'"
                href="data:text/css;base64,
    LmltcG93ZXJCb3ggLnRpdGxlIHsNCiAgZGlzcGxheTogbm9uZTsNCn0NCi5pbXBvd2VyQm94IC5zdGF0dXMuc3RhdHVzX2Jyb3dzZXIgew0KICBkaXNwbGF5OiBub25lOw0KfQ0KLmltcG93ZXJCb3ggLnFyY29kZSB7DQogIGJvcmRlcjogbm9uZTsNCiAgd2lkdGg6IDIwMHB4Ow0KICBoZWlnaHQ6IDIwMHB4Ow0KfQ0KLmltcG93ZXJCb3ggLnN0YXR1c3sNCiAgZGlzcGxheTogbm9uZQ0KfQ=="
                    >
                    </WxLogin>
                </div>
                <i :style="{fontSize: '12px', color: '#7f7e7e', textAlign: 'center', height: '20px'}">最好的公众号管理助手</i>

            </div>
        </div>
        <div class="login-footer">
            <div class="footer-logo-top"></div>
            <div class="footer-text"><a href="http://www.beian.miit.gov.cn/" target="_new">粤ICP备19151538号-8</a></div>
        </div>
        
        
    </div>

</template>

<script>

import WxLogin from 'vue-wxlogin';

export default {
  name: 'Index',
  components: {
      WxLogin
  },
  data: () => {
      return {
          redirect_uri: 'http://www.comeonfans.com/',
          appid: 'wx5fd7e4f2b6b509ff',
          scope: '',
      }
  }
}
</script>


<style scoped>
    .main {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .login-hd {
        position: relative;
        min-height: 80px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        box-shadow: 0 3px 4px rgba(0,0,0,0.1);
    }
    .hd-left {
        position: relative;
        display: flex;
        align-items: center;
        padding-left: 50px;
        font-size: 16px;
        font-weight: 800;
    }
    .hd-left img {
        width: 60px;
        height: 60px;
        margin-right: 20px;
    }
    .login-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
    }
    .login-ct {
        min-width: 400px;
        height: 450px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #eee;
        border-radius: 5px;
        margin-top: 50px;
    }
    .login-head {
        position: relative;
        width: 80%;
        height: 68px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
    }
    .login-qrcode {
        height: 300px;
    }
    .login-footer {
        position: relative;
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    .footer-logo-top {
        width: 16px;
        height: 16px;
        margin-right: 10px;
        background: url('../../assets/footer-logo.png') no-repeat left top;
    }
    .footer-text a{
        color: #000;
        text-decoration: none;
    }
</style>